package cn.shengongying.dao;

import cn.shengongying.model.WorkerList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author RXK
 * @since 2022-01-22
 */
@Repository
public interface WorkerListMapper extends BaseMapper<WorkerList> {

    List<WorkerList> findByUserIds(@Param("userIds") List<Long> userIds);

    int countByUserIdAndType(@Param("userIds") Set<Long> userId, @Param("type") Integer type);

    List<WorkerList> findByUserId(@Param("userId") Long userId);
}
